package com.wwz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("公司")
@TableName("company")
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("公司名称")
    private String name;

    @ApiModelProperty("企业登录账号ID")
    private String managerId;

    @ApiModelProperty("当前版本")
    private String version;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("续期时间")
    private Date renewalDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("到期时间")
    private Date expirationDate;

    @ApiModelProperty("公司地区")
    private String companyArea;

    @ApiModelProperty("公司地址")
    private String companyAddress;

    @ApiModelProperty("营业执照-图片ID")
    private String businessLicenseId;

    @ApiModelProperty("法人代表")
    private String legalRepresentative;

    @ApiModelProperty("公司电话")
    private String companyPhone;

    @ApiModelProperty("邮箱")
    private String mailbox;

    @ApiModelProperty("公司规模")
    private String companySize;

    @ApiModelProperty("所属行业")
    private String industry;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("审核状态")
    private String auditState;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("当前余额")
    private Double balance;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
